package com.csust.automaticteach.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.csust.automaticteach.common.PageRequest;
import com.csust.automaticteach.model.entity.ClassExercise;
import com.baomidou.mybatisplus.extension.service.IService;
import com.csust.automaticteach.model.entity.ExercisesSets;
import com.csust.automaticteach.model.vo.exercises.StudentExercisesSetsVO;

import java.util.List;

/**
* @author 钰玟
* @description 针对表【t_class_exercise(班级练习关联表)】的数据库操作Service
* @createDate 2025-08-16 15:41:14
*/
public interface ClassExerciseService extends IService<ClassExercise> {

    /**
     * 根据教师id获取该教师创建的班级练习
     * @param teacherId 教师id
     * @return 创建的班级练习
     */
    List<ExercisesSets> listExerciseSetsByTeacherId(Long teacherId);

    /**
     * 根据学生id获取该学生加入的班级练习
     * @param pageRequest 分页参数
     * @param studentId 学生id
     * @return 加入的班级练习
     */
    Page<StudentExercisesSetsVO> listExerciseSetsByStudentId(PageRequest pageRequest, Long studentId);
}
